package com.ccdc.cbpc.bigdata.server.demo1.controller;

import com.ccdc.cbpc.bigdata.api.demo.client.DemoClient;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/demo1")
public class DemoController{

    @Autowired
    private DemoClient demoClient;

    @GetMapping("/test")
    public String test(){
        return "demo1-call-Client:"+demoClient.test();
    }
}
